import type { MenuProps as AntdMenuProps } from 'antd';
import { Menu as AntdMenu } from 'antd';
import React from 'react';
import Item from './MenuItem';
import SubMenu from './SubMenu';

export type { MenuTheme } from 'antd';
export type { Props as MenuItemProps } from './MenuItem';
export type { Props as SubMenuProps } from './SubMenu';
export { Item, SubMenu };

export type MenuProps = AntdMenuProps;

function Menu(props: MenuProps) {
  // @ts-ignore
  return <AntdMenu {...props} />;
}

Menu.Item = Item;
Menu.SubMenu = SubMenu;
export default Menu;
